<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                template="/templates/template.xhtml">
    <ui:define name="title">用户标签库</ui:define>
    <ui:define name="content">
        <h:form id="userTagInfoForm">
            <div class="topbar clearfix"
                 style="background: -webkit-linear-gradient(top,#f6f7f9 0,#ebedf0 100%);">
                <p:toolbar>
                    <f:facet name="right">
                        <p:commandButton id="saveUserLabelBtn" value="保存" icon="fa fa-save"
                                         actionListener="#{userTagInfoBean.onSaveUserLabel}"
                                         rendered="#{userTagInfoBean.activeTabIndex == 4}"/>
                        <p:button value="返回" icon="fa fa-reply-all" href="#{currentUserBean.back}"></p:button>
                    </f:facet>
                </p:toolbar>
            </div>
            <div class="ui-fluid" style="padding-top: 30px;">
                <div class="ui-g">
                    <div class="ui-g-12">
                        <div class="card">
                            <p:tabView id="tabView" scrollable="true">
                                <p:ajax event="tabChange" listener="#{userTagInfoBean.onChangeTabView}"
                                        update="userTagInfoForm"/>
                                <p:tab title="用户信息">
                                    <ui:include src="user-info.xhtml"/>
                                </p:tab>
                                <p:tab title="验证信息">
                                    <ui:include src="validate-info.xhtml"/>
                                </p:tab>
                                <p:tab title="API订单记录">
                                    <ui:include src="api-info.xhtml"/>
                                </p:tab>
                                <p:tab title="联登记录">
                                    <ui:include src="union-info.xhtml"/>
                                </p:tab>
                                <p:tab id="userLabelTab" title="用户标签">
                                    <ui:include src="user-label.xhtml"/>
                                </p:tab>
                            </p:tabView>
                        </div>
                    </div>
                </div>
            </div>
        </h:form>
    </ui:define>
</ui:composition>